package com.gxa.modules.app.hospital.health.notice.controller;

import com.gxa.common.utils.Result;
import com.gxa.modules.app.hospital.health.notice.mapper.HospitalMapper;
import com.gxa.modules.model.dto.HospitalDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * <p>
 * 医院简介表 前端控制器
 * </p>
 *
 * @author lst
 * @since 2022-11-14 09:05:41
 */
@Api(tags = "医院介绍")
@RestController
@RequestMapping("/hospital")
public class HospitalController {
    @Autowired
 private HospitalMapper hospitalMapper;

    @ApiOperation("查询医院简介")
    @GetMapping("/queryIntroductionHospital/{id}")
    public Result<HospitalDto> queryIntroductionHospital(@PathVariable("id") Integer id) {

         return  new Result().ok(hospitalMapper.queryIntroductionHospital(id));
    }

}

